<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>忘记密码</title>
    <meta name="keywords" content="忘记密码_机械猫">
    {load file='__pc_static__/css/init.css'}
    {load file='__pc_static__/css/login.css'}
</head>
<body>
    <div id="register">
        <div class="box">
            <div class="top"><img src=""></div>
            <form action="{:url('User/forget',['step'=>5])}" method="post" onsubmit="return update_pass()">
                <dl>
                    <dt><h1>修改密码</h1></dt>
                    <dd class="text no-border">您的验证已通过！</dd>
                    <dd class="text no-border">请输入新的密码</dd>
                    <dd><input name="password" type="password" value=""></dd>
                    <dd><input name="password_repeat" type="password" value=""></dd>
                    <dd class="btn no-border"><input type="submit" value="修改"></dd>
                </dl>
            </form>
        </div>
    </div>
</body>
</html>
{load file='__static__/js/jquery.min.js'}

<script>
    $(function(){
            //验证两次密码正确性
            window.update_pass = function ()
            {
                if($('input[name=password]').val() != $('input[name=password_repeat]').val())
                {
                    alert('您输入两次密码不正确');
                    return false;
                }
                return true;
            }
    });
</script>
